package com.vitamo.client;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.vitamo.Beans.InfoUtilisateurB;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.ClickEvent;

public class more extends DialogBox{
	private InfoUtilisateurB inf;
	private TextBox nom,prenom,email,nump,numt,numf;
	private TextArea Adress;
	public more(InfoUtilisateurB i){
		inf=i;
		PopupPanel main=new PopupPanel();
		AbsolutePanel P = new AbsolutePanel();
		//setWidget(absolutePanel);
		main.add(P);
		this.add(main);
		main.setSize("328px", "461px");
			P.setSize("310px", "376px");
			
			Button btnNewButton = new Button("New button");
			btnNewButton.setText("Save");
			P.add(btnNewButton, 195, 334);
			
			Button btnNewButton_1 = new Button("New button");
			btnNewButton_1.addClickHandler(new ClickHandler() {
				public void onClick(ClickEvent event) {
					hide();
				}
			});
			btnNewButton_1.setText("Quitter");
			P.add(btnNewButton_1, 247, 334);
			
			Label lblInformationSurLutilisateur = new Label("Information sur l'utilisateur :");
			P.add(lblInformationSurLutilisateur, 10, 10);
			
			Label lblNom = new Label("Nom :");
			P.add(lblNom, 10, 48);
			
			Label lblPrenom = new Label("Prenom :");
			P.add(lblPrenom, 10, 82);
			lblPrenom.setSize("55px", "18px");
			
			Label lblAdresse = new Label("Adresse :");
			P.add(lblAdresse, 10, 118);
			lblAdresse.setSize("65px", "18px");
			
			Label lblEmail = new Label("Email :");
			P.add(lblEmail, 10, 182);
			lblEmail.setSize("55px", "18px");
			
			Label lblNumeroTlphone = new Label("Numero t\u00E9l\u00E9phone :");
			P.add(lblNumeroTlphone, 10, 223);
			
			Label lblNumeroFax = new Label("Numero Fax :");
			P.add(lblNumeroFax, 10, 252);
			lblNumeroFax.setSize("113px", "18px");
			
			Label lblNumeroPortable = new Label("Numero Portable :");
			P.add(lblNumeroPortable, 10, 292);
			lblNumeroPortable.setSize("113px", "18px");
			Adress= new TextArea();
			Adress.setText(i.getAdresse());
			P.add(Adress, 71, 122);
			Adress.setSize("217px", "36px");
			nom=new TextBox();
			nom.setText(i.getNom());
			P.add(nom, 71, 48);
			nom.setSize("217px", "18px");
			prenom=new TextBox();
			prenom.setText(i.getPrenom());
			P.add(prenom, 71, 82);
			prenom.setSize("217px", "18px");
			email=new TextBox();
			email.setText(i.getEmail());
			P.add(email, 71, 174);
			email.setSize("217px", "14px");
			numt=new TextBox();
			numt.setText(i.getNumT());
			P.add(numt, 129, 212);
			nump=new TextBox();
			nump.setText(i.getNumP());
			P.add(nump, 133, 292);
			nump.setSize("159px", "18px");
			numf=new TextBox();
			numf.setText(i.getNumF());
			P.add(numf, 129, 252);
	}
}
